﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class DeliveryRobot : Robot
    {
        private double hours;
        public double Hours
        {
            get { return this.hours; }
            set { this.hours = value; }
        }
        public DeliveryRobot(string name, double hours) : base(name)
        {
            Hours = hours;
        }
        public DeliveryRobot()
        {
        }
        public override void Working()
        {
            Console.WriteLine("机器人名字：{0}，工作时长{1}小时", base.Name, this.Hours);
        }
    }
}
